<?php

namespace app\api\model;

use app\api\model\order\OrderStatusTrait;
use Exception;

/**
 * @property int $order_status 商品状态
 */
class Order extends BaseModel
{
    use OrderStatusTrait;

    protected $table = 'fa_store_order';

    public static function getOrderByUserIdAndId($userid, $orderId,$field='*')
    {
        return self::where('user_id', $userid)->where('id', $orderId)->field($field)->find();
    }


}